<?
/**
 * WigdetPage 
 * 
 * @package WigdetPage.php 
 * @version $id$
 * @copyright blankyao
 * @author blankyao <blankyao@gmail.com> 
 * @license PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
 */
class WigdetPage {
    var $title = '合肥工业大学网站工作室';
    var $resRoute = '';
    var $metaArray = array();
    /**
     * head 
     * 
     * @access public
     * @return void
     */
    function head() {
        echo ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
        echo ('<head>');
        echo $this->_meta();
        echo $this->link();
        echo $this->_title();
        echo ('</head>');
    }

    /**
     * _meta 
     * 
     * @access protected
     * @return void
     */
    function _meta() {
        foreach($this->metaArray as $meta => $metaValue) {
            $metaStr .= '<meta name="' . $meta . '" content=" ' . $metaValue . ' "></meta>'; 
        }
        return metaStr;
    }

    /**
     * _title 
     * 
     * @access protected
     * @return void
     */
    function _title() {
        $this->title = '<title>' . $this->title . '</title>';
        return $this->title;
    }
    /**
     * _link 
     * 
     * @access protected
     * @return void
     */
    function _link() {
        $linkStr = '<link href="' . $this->resRoute . '/admin/styles/style.css" rel="stylesheet" type="text/css" />';
        $link Str.= '<script language="javascript" type="text/javascript" src="' .$resRoute. '/admin/javascript/jquery.js"></script>
	<script language="javascript" type="text/javascript" src=" ' . $resRoute . '/admin/javascript/magike_control.js"></script>';
        return $linkStr;
    }
    /**
     * _top 
     * 
     * @access protected
     * @return void
     */
    function _top() {
    }
    /**
     * _content 
     * 
     * @access protected
     * @return void
     */
    function _content() {
    }
    /**
     * _element 
     * 
     * @access protected
     * @return void
     */
    function _element() {
    }
}
?>
